/**
 * 
 */
package edu.zut.hb.software.sample.admin.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import edu.zut.hb.software.admin.domain.User;
import edu.zut.hb.software.admin.service.UserManager;
import edu.zut.hb.software.sample.base.web.spring.controller.GenericController;

/**
 * @author Mie
 *
 */
@RestController
@RequestMapping(value = "/user", produces = { MediaType.APPLICATION_JSON_VALUE })
public class UserController extends GenericController<User, Long, UserManager> {

	UserManager userManager;

	@RequestMapping("/index")
	public String index() {
		return "user/index";
	}

	@Autowired
	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
		this.manager = this.userManager;
	}
}
